﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wpf.Models
{
    /// <summary>
    /// 院前急救信息
    /// </summary>
    public class Pre_FirstAidInfo
    {
        /// <summary>
        /// 任务主键
        /// </summary>
        public string TASKID { get; set; }
        /// <summary>
        /// 任务号
        /// </summary>
        public string TASKNO { get; set; }
        /// <summary>
        /// 任务派发时间
        /// </summary>
        public DateTime SENDTIME { get; set; }
        /// <summary>
        /// 医生工号
        /// </summary>
        public string DOCTORID { get; set; }
        /// <summary>
        /// 医生名称
        /// </summary>
        public string DOCTORNAME { get; set; }
        /// <summary>
        /// 司机工号
        /// </summary>
        public string DRIVERID { get; set; }
        /// <summary>
        /// 司机名称
        /// </summary>
        public string DRIVERNAME { get; set; }
        /// <summary>
        /// 现场地址
        /// </summary>
        public string ADDRESS { get; set; }
        /// <summary>
        /// 护士工号
        /// </summary>
        public string NURSEID { get; set; }
        /// <summary>
        /// 护士名称
        /// </summary>
        public string NURSENAME { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string AMBNO { get; set; }
        /// <summary>
        /// 患者主索引
        /// </summary>
        public string PATIENTID { get; set; }
        /// <summary>
        /// 患者名称
        /// </summary>
        public string PATIENTNAME { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string SEX { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public string AGE { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string INDENTITYNO { get; set; }
        /// <summary>
        /// 事件类型
        /// </summary>
        public string EVTTYPE { get; set; }
        /// <summary>
        /// 事件等级
        /// </summary>
        public string EVTLEVEL { get; set; }

        /// <summary>
        /// 呼救人电话
        /// </summary>
        public string ETEL { get; set; }
        /// <summary>
        /// 呼救人
        /// </summary>
        public string ECONTACT { get; set; }
        /// <summary>
        /// 呼救原因
        /// </summary>
        public string EREASON { get; set; }
        /// <summary>
        /// 出车类型
        /// </summary>
        public string CARTYPE { get; set; }
        /// <summary>
        /// 主诉
        /// </summary>
        public string FIRSTDIAG { get; set; }
        /// <summary>
        /// 是否突发事件
        /// </summary>
        public string EMERGENCY { get; set; }

        public string ADDITIONAL1 { get; set; }
        public string ADDITIONAL2 { get; set; }
        /// <summary>
        /// 体温
        /// </summary>
        public string TEMP { get; set; }
        /// <summary>
        /// 心率
        /// </summary>
        public string HR { get; set; }
        /// <summary>
        /// 呼吸
        /// </summary>
        public string RR { get; set; }
        /// <summary>
        /// 脉搏
        /// </summary>
        public string PR { get; set; }
        /// <summary>
        /// 收缩压
        /// </summary>
        public string SBP { get; set; }
        /// <summary>
        /// 舒张压
        /// </summary>
        public string DBP { get; set; }
        /// <summary>
        /// 血氧
        /// </summary>
        public string SPO2 { get; set; }
        /// <summary>
        /// 体征文本
        /// </summary>
        public string SIGN {
            get
            {
                string showstr = "";
                if (!string.IsNullOrEmpty(TEMP))
                {
                    showstr += "T:" + TEMP + "℃,";
                }
                if (!string.IsNullOrEmpty(HR))
                {
                    showstr += "HR:" + HR + "次/分,";
                }
                if (!string.IsNullOrEmpty(SPO2))
                {
                    showstr += "SPO2:" + SPO2 + "％,";
                }
                if (!string.IsNullOrEmpty(RR))
                {
                    showstr += "R:" + RR + "次/分,";
                }
                if (!string.IsNullOrEmpty(SBP) && !string.IsNullOrEmpty(DBP))
                {
                    showstr += "BP:" + SBP + "/" + DBP + "mmHg,";
                }
                return showstr.TrimEnd(',');
                /*return string.Format("{0}{1}{2}{3}{4}{5} "
                    , string.IsNullOrEmpty(TEMP) ? string.Empty : string.Format("体温:{0} ", TEMP)
                    , string.IsNullOrEmpty(HR) ? string.Empty : string.Format("心率:{0} ", HR)
                    , string.IsNullOrEmpty(RR) ? string.Empty : string.Format("呼吸:{0} ", RR)
                    , string.IsNullOrEmpty(PR) ? string.Empty : string.Format("脉搏:{0} ", PR)
                    , string.IsNullOrEmpty(SBP) && string.IsNullOrEmpty(DBP) ? string.Empty : string.Format("血压:{0}/{1} ", SBP, DBP)
                    , string.IsNullOrEmpty(SPO2) ? string.Empty : string.Format("血氧:{0} ", SPO2));*/
            }
        }
        /// <summary>
        /// 腕带码
        /// </summary>
        public string RFID { get; set; }
        /// <summary>
        /// 中心标记
        /// </summary>
        public string FIVECENTER { get; set; }
        /// <summary>
        /// 院内患者PVID
        /// </summary>
        public string PVID { get; set; }
    }
}
